{% extends "profilebase.html" %}

{% block sidebar_title %}{% endblock %}

{% block sidebar_content %}

{% endblock %}

{% block main_title %}<h1><a>Registration Form</a></h1>{% endblock %}

{% block main_subtitle %}{% endblock %}

{% block main_content %}
<form id="form_register" class="appnitro"  method="post" action="/reg/additionalInfo/">{% csrf_token %}
							
	<ul >
	
	{{ form.non_field_errors }}
	{% if category != "institute" %}
		<label>First Name</label><br/>
		<input name="first_name" type="text"/><br/><br/><br/>
		<label>Last Name</label><br/>
		<input name="last_name" type="text"/><br/><br/><br/>
	{% endif %}
	{% for field in form %}
		<div class="fieldWrapper">
			{% if field.label == "Open on" %} 
				<label>Open On (days)</label>
			{% else %} 
				{% if field.label == "Instrument played" %} 
					<label>Instrument/s Played</label> 
				{% else %} 
					{% if field.label == "Jamming style" %} 
						<label>Jamming Style</label> 
					{% else %} 
						{% if field.label == "Favourite genre" %} 
							<label>Favourite Genre/s</label> 
						{% else %} 
							{% if field.label == "Date of birth" %} 
								<label>{{ field.label }}<font size="1"> (YYYY-MM-DD)</font></label> 
							{% else %} 
								{{ field.label_tag }} 
							{% endif %} 
						{% endif %} 
					{% endif %} 
				{% endif %} 
			{% endif %} 
			<label class="text" style="color: #FF0000">{{ field.errors }}</label> <br/>
			{{ field }}<br /><br/>
		</div>
	{% endfor %}


	<input id="search_btn" type="submit" value="Register" /><a href="/"> Do this later? </a><br/><br/><br/>
{% endblock %}
